﻿@using DataMongo
@using DataMongo.Entities
@using MVCMongo.Services

@model IEnumerable<DataMongo.Entities.Users>
@{
    var imageUrl = "~/Content/UserProfile/img/NoImage.jpg";

}

<div class="row-fluid">
    <div class="span12">
        <ul class="tiles">
        
            @foreach (var item in Model)
            {
                                
                <li class="image">
                        @{
                            imageUrl = UtilityService.GetCurrentUserImage(item.UserId);
                        }
                        @if (!string.IsNullOrEmpty(imageUrl))
                        {
                            imageUrl = "/content/UserProfile/User/" + @imageUrl;
                        
                        }
                        <a href="#"><img src="@imageUrl" alt="@item.FirstName" /><span class='name' style="font-size: 11px!important">@item.FirstName @item.LastName</span></a>

                </li>
            }
                        
        </ul>
        </div>
</div>


